﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace EFCore.Entity
{
    /// <summary>
    /// 权限表
    /// </summary>
	[Serializable]
    [Table("CodePermission")]
    public partial class CodePermission 
    {
        /// <summary>
        /// Id
        /// </summary>
        [Required]
        [DisplayName("Id")]
        public int Id { get; set; }

        /// <summary>
        /// 权限名称
        /// </summary>
        [Required]
        [DisplayName("权限名称")]
        public string PermissionName { get; set; }

        /// <summary>
        /// 资源类型
        /// </summary>
        [Required]
        [DisplayName("资源类型")]
        public string ResourcesType { get; set; }

        /// <summary>
        /// 资源地址
        /// </summary>
        [Required]
        [DisplayName("资源地址")]
        public string ResourcesUrl { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        [Required]
        [DisplayName("父级ID")]
        public int ParentId { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        [Required]
        [DisplayName("排序号")]
        public int Sorting { get; set; }

        /// <summary>
        /// 是否启用(1启用0停用)
        /// </summary>

        [DisplayName("是否启用(1启用0停用)")]
        public string IsEnable { get; set; }


    }
}
